<?php

function smarty_function_json ( $params, &$smarty )
{
	
	if ( ! empty ( $params['data'] ) )
		return json_encode ( $params['data'] ) ;
	else
		return '' ;

}

?>